﻿<%@ page contentType="text/html; charset=gbk" language="java" %>

<%@ taglib uri="/component/tree" prefix="component" %>

<% 
	String context = request.getContextPath();
	
	String treeDir = context + ConfigUtil.getTreeDir();
	
%>


<%@page import="component.tree.util.ConfigUtil"%><head>
	

<head>
	<% 
	out.println(ConfigUtil.getImportTreeJs());
	out.println(ConfigUtil.getImportTreeCss());
	%>
</head>

<body>

<form action="/component.do" method="post">
	
	<span class="lable">单位:&nbsp;&nbsp;&nbsp;</span>		
	<input type="hidden" name="orgId" id="orgId" />
	<input type="text" name="orgName" id="orgName" />
	
	<!-- 单位表的fpath不符合树型的规范，所以不能进行搜索 -->
	<span id="orgSpan"></span>
	<component:treeSelect id="orgTreeObj" componentId="SMG_TORGANIZATION" title="单位" btnName="选择单位"
					  loadAllAble="true" searchAble="false"
					  positionId="orgSpan" windowWidth="300" windowHeight="400" 
					  idName="orgId" viewName="orgName">
	</component:treeSelect>
	
	<SCRIPT LANGUAGE="JavaScript">
	<!--

	/*
	function orgTreeObj_doAfterSelect(selectTreeMap){
		var name = selectTreeMap.get("name");
		if(name=="undefined" || name==null) name = "";
		
		var id = selectTreeMap.get("id");
		if(id=="undefined" || name==null) id = "";
		
		document.getElementById("orgName").value = name;
		document.getElementById("orgId").value = id;
	}
	function orgTreeObj_doClear(){								
		document.getElementById("orgName").value = "";
		document.getElementById("orgId").value = "";						
	}*/
	
	//-->
	</SCRIPT>
	
	
	<br><br>
	<span class="lable">资金来源:</span>		
	<!--  
	<input type="hidden" name="fundsrcId" id="fundsrcId" />
	<input type="text" name="fundsrcName" id="fundsrcName" />
	-->
	
	<span id="fundsrcSpan"></span>
	<component:treeSelect id="fundsrcTreeObj" componentId="TFM_PB_TFUNDSRC"
					  loadAllAble="true" selectMoreAble="true"
					  positionId="fundsrcSpan" windowWidth="300" windowHeight="400" 
					  idName="fundsrcId" viewName="fundsrcName">
	</component:treeSelect>
	
	
	
	<br><br>
	<span class="lable">经费类型:</span>		
	<!--  
	<input type="hidden" name="outlayTypeId" id="outlayTypeId" />
	<input type="text" name="outlayTypeName" id="outlayTypeName" />
	-->
	
	<span id="outlayTypeSpan"></span>
	<component:treeSelect id="outlayTypeTreeObj" componentId="TFM_PB_TOUTLAYTYPE"
					  loadAllAble="true" selectMoreAble="true"
					  positionId="outlayTypeSpan" windowWidth="300" windowHeight="400" 
					  idName="outlayTypeId" viewName="outlayTypeName">
	</component:treeSelect>
	
	
	
	
	<br><br>
	<span class="lable">功能科目:</span>		
	<!--  
	<input type="hidden" name="subjId" id="subjId" />
	<input type="text" name="subjName" id="subjName" />
	-->
	
	<span id="subjSpan"></span>
	<component:treeSelect id="subjTreeObj" componentId="TFM_PB_TSUBJ"
					  loadAllAble="false" searchAble="false" isShowFirstBtn="false"
					  positionId="subjSpan" windowWidth="300" windowHeight="400" 
					  idName="subjId" viewName="subjName">
	</component:treeSelect>

</form>

</body>